package parttwo.homework;

/**
 * 用户消费信息类
 */
public class UserExpendMsg {
    private double talkingTime;  // 通话时长
    private double mobileData;   // 上网流量
    private double expend;       // 每月消费金额

//    无参构造方法
    public UserExpendMsg() {
    }
//   有参构造方法
    public UserExpendMsg(double talkingTime, double mobileData, double expend) {
        setTalkingTime(talkingTime);
        setMobileData(mobileData);
        setExpend(expend);
    }

//    提供公有的set get 方法
    public double getTalkingTime() {
        return talkingTime;
    }

    public void setTalkingTime(double talkingTime) {
        this.talkingTime = talkingTime;
    }

    public double getMobileData() {
        return mobileData;
    }

    public void setMobileData(double mobileData) {
        this.mobileData = mobileData;
    }

    public double getExpend() {
        return expend;
    }

    public void setExpend(double expend) {
        this.expend = expend;
    }
}
